package com.wn.mapper;

import com.wn.pojo.Chapter;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wn.vo.ChapterVO;
import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author yellow docker
 * @since 2023-06-21
 */
public interface ChapterMapper extends BaseMapper<Chapter> {

    @Select("select * from wnxt_chapter where course_id = #{courseId}")
    @ResultType(ChapterVO.class)
    List<ChapterVO>  listChapterVo(String courseId);

}
